﻿@{
    ViewBag.Title = "Сведения к расписанию учебных занятий";
}

@section scripts {
    @Content.Script(this, "~/Scripts/Site/schedule.updatedata.viewmodel.js")
}

@Content.Navbar("scheduleInforForScheduleLink", this)
@Content.Toolbar(classes: "full-page", showCalendarTool: false, action: () => Html.RenderPartial("Config/_DepartmentList"))


<div class="content full-page">
    <table class="table table-striped table-bordered table-condensed" style="width: 100%; margin-bottom: 0px;">
        <thead>
            <tr>
                <th rowspan="2" style="width: 30px;">
                    №
                </th>
                <th rowspan="2" class="span3">
                    ФИО
                </th>
                <th rowspan="2" class="span3">
                    Факультет
                </th>
                <th rowspan="2" class="span1">
                    Курс
                </th>
                <th rowspan="2" class="span3">
                    Дисциплина
                </th>
                <th rowspan="2" class="span2">
                    Специальность
                </th>
                <th colspan="2">
                    Лекции
                </th>
                <th colspan="2">
                    Практические занятия
                </th>
                <th colspan="4">
                    Лабораторные занятия
                </th>
            </tr>
            <tr>
                <th class="span1"> 
                    Часов в неделю
                </th>
                <th class="span2">
                    Группы потока
                </th>
                <th class="span1"> 
                    Часов в неделю
                </th>
                <th class="span2">
                    Группы потока
                </th>
                <th class="span1"> 
                    Часов в неделю
                </th>
                <th class="span2">
                    Группы потока
                </th>
                <th class="span1">
                    Кол-во подгрупп
                </th>
                <th class="span1">
                    № лаб., № комп.класса
                </th>
            </tr>
        </thead>
        <tbody data-bind="foreach: scheduleInfos">
            <tr data-bind="click: $root.scheduleInfoClick, attr: {'data-scheduleinfoid' : Id}" style="cursor: pointer;box-shadow:inset 0 0 10px #FFCC66;" class="selected">
                <td style="text-align: center;" data-bind="text: $index() + 1"></td>
                <td data-bind="text: Lecturer"></td>
                <td data-bind="foreach: Faculties">
                    <span data-bind="html: $data"></span>
                </td>
                <td style="text-align: center;" data-bind="foreach: Courses">
                    <span data-bind="html: $data"></span>
                </td>
                <td data-bind="text: TutorialName"></td>
                <td data-bind="foreach: Specialities">
                    <span data-bind="html: $data"></span>
                </td>
                <td style="text-align: center;" data-bind="text: LectHoursPerWeek"></td>
                <td style="text-align: center;"  data-bind="foreach: LectGroups">
                    <span data-bind="html: $data"></span>
                </td>

                <td style="text-align: center;" data-bind="text: PractHoursPerWeek"></td>
                <td style="text-align: center;"  data-bind="foreach: PractGroups">
                    <span data-bind="html: $data"></span>
                </td>

                <td style="text-align: center;" data-bind="text: LabHoursPerWeek"></td>
                <td style="text-align: center;"  data-bind="foreach: LabGroups">
                    <span data-bind="html: $data"></span>
                </td>
                <td style="text-align: center;" data-bind="text: LabSubgroupCount"></td>
                <td style="text-align: center;"  data-bind="foreach: LabAuditoriumsNum">
                    <span data-bind="html: $data"></span>
                </td>
            </tr>
        </tbody>
    </table>
</div>

@{Html.RenderPartial("Config/_AddEdit");}